import addr from '../apiConfig';
import { axios } from '../libs/axiosSetting';

 export function areas(params) {
    return axios({
      url: addr+'/a/area/list',
      method: 'get',
      data: params,
    });
  }
  
 export function update(params) {
    return axios({
      url: addr+'/a/area/update',
      method: 'post',
      data: params,
    });
  }
  export function insert(params) {
    return axios({
      url: addr+'/a/area/insert',
      method: 'post',
      data: params,
    });
  }
  export function del(params) {
    return axios.get(addr+'/a/area/delete', params);
  }